import {http} from '@/utils/http'

// 添加专家
export function addExpert(data:any) {
    return http.post<any>('/admin/expert/addExpert', data)
}

// 修改专家
export function updateExpert(data:any) {
    return http.post<any>('/admin/expert/updateExpert', data)
}

// 删除专家
export function deleteExpert(id:string) {
    return http.post<any>('/admin/expert/deleteExpert/'+id)
}

// 获取专家详情
export function getExpert(id:any) {
    return http.post<any>('/admin/expert/getExpert/'+id)
}

// 获取专家分页列表
export function getExpertPage(data:any) {
    return http.post<any>('/admin/expert/getExpertPage', data)
}

// 获取专家列表
export function getExpertList(data: any) {
    return http.post<any>('/admin/expert/getExpertList', data)
}



















